<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>卡券领取</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="author" content="runoob">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/mobile/css/index.css"/>
    <link rel="stylesheet" href="__STATIC_URL__/static/mobile/css/weui.css" />
    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js"></script>
</head>
<style>

</style>
<body style="background: #fff">

<!------------------导航-------------------------->
<section>

    <!--------------------------主要内容区域------------------------------------->
    <div class="container" id="container" style="margin: 0;text-align: center">
        <div class="page__bd" style="margin-top: 30%">
            <div class="weui-loadmore">
                <i class="weui-loading"></i>
                <span class="weui-loadmore__tips">正在加载</span>
            </div>

        </div>

    </div>
</section>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    $(function () {
        wx.config({
            debug: false,
            appId: "{$jssdk['appId']}",
            timestamp: "{$jssdk['timestamp']}",
            nonceStr: "{$jssdk['nonceStr']}",
            signature: "{$jssdk['signature']}",
            jsApiList: [
                'addCard'

            ]
        });
        wx.ready(function () {
            wx.addCard({
                cardList:{$card},
                success: function (res) {
                    window.location.replace("{:url('cardget/cardgetsuccess')}")
                },
            });

        })
    })

</script>
</body>
</html>
